From: Richard M. Stallman Date: Wed, 26 May 1993 22:12:18 +0000 (+0000) Subject: (magic_searchpath_decoder): Fix typos. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95918 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=44bbb3e05bb92f03ef5cfb4c6a55a4c79bb799fc;p=emacs.git (magic_searchpath_decoder): Fix typos. --- diff --git a/src/xrdb.c b/src/xrdb.c index cf7a06f8041..fdce4e44a88 100644 --- a/src/xrdb.c +++ b/src/xrdb.c @@ -204,12 +204,12 @@ magic_searchpath_decoder (incantation_string, file, return_path) string = (char *) alloca (string_size * sizeof (*string)); } bcopy (s, string, len); - string[len + 1] = '\0'; + string[len] = '\0'; if (decode_magic (string, file, return_path)) return 1; } - if (p) + if (p && *p != 0) s = p + 1; else return 0;